<?php

include_once ('conn.php');

$id = $_POST['id'];
$name = $_POST['name'];
$description = $_POST['description'];

$sql = "update `department` set `name` = '$name', `description` = '$description' where `id` = '$id'";

//die($sql);

$pd = mysqli_query($conn,$sql);

if (!$pd){
    die("修改失败！");
}

header('location:index.php');









